package 单if;
//判断年龄是否上网
import java.util.Scanner;

public class test02 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("输入你的年龄：");
        int age = sc.nextInt();
        if(age>=18){
            System.out.println("开始上网");
        }
        System.out.println("回家吃饭");

    }
}
